package cn.com.dhcc.turbo.entity.stat.wapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.handler.dbhandler.WappedResultSet;
import cn.com.dhcc.turbo.entity.stat.ExchStatStatic; 

public class ExchStatStaticRowWapper implements RowMapper<ExchStatStatic> {

	@Override
	public ExchStatStatic mapRow(ResultSet rss, int rowNum) throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		ExchStatStatic vo = new ExchStatStatic();
		vo.setDataCode(rs.getString("data_code"));
		vo.setExchType(rs.getString("exch_type"));
		vo.setNodeId(rs.getString("node_id"));
		vo.setStatLevel(rs.getString("stat_level"));
		vo.setNum(rs.getString("num")); 
		vo.setTimeType(rs.getString("timeType"));
		vo.setNt(rs.getString("nt"));
		vo.setMtime(rs.getString("mtime"));
		vo.setOwnId(rs.getString("own_id"));
		vo.setAdapterName(rs.getString("sys_name"));
		vo.setName(rs.getString("name"));
		vo.setId(rs.getString("id"));
		vo.setSendnum(rs.getString("sendnum"));
		vo.setRevnum(rs.getString("revnum"));
		vo.setSumnum(rs.getString("sumnum"));
		return vo;
	}

}
